package org.sparkle.html.impl.widget;

import org.sparkle.html.api.AbstractHtmlElement;
import org.sparkle.html.api.AbstractWidget;
import org.sparkle.html.impl.basic.A;
import org.sparkle.html.impl.basic.Div;

public class Accordion extends AbstractWidget {
	
	private static final long serialVersionUID = -8202897853237682076L;


	public void addRow(String title,Div div){
		H3 h3=new H3();
		h3.append(new A(title));
		append(h3);
		append(div);
	}

	
	public class H3 extends AbstractHtmlElement{
		
		private static final long serialVersionUID = 5343441749788985360L;

		@Override
		public String getTag() {
			return "h3";
		}
	}
}
